var oTable_content = document.querySelectorAll('.table_content1')
var oTable_content2 = document.querySelector('.table_content2')
var oContent_body_right_title_div = document.querySelectorAll('.content_body_right_title div')
var oAddModal = document.querySelectorAll('.addModal')

// console.log(oAddModal)
oContent_body_right_title_div[0].style.color = 'rgb(37, 97, 239)';
oContent_body_right_title_div[0].style.borderBottom='5px solid #134ade';
oTable_content[0].style.display = 'block'
oAddModal[0].style.display = 'block'
var isNow = 0;
for(var i=0;i<oContent_body_right_title_div.length;i++){
    oContent_body_right_title_div[i].dataset.indent = i;
    oContent_body_right_title_div[i].onclick = function(){
        isNow = this.dataset.indent; 
        for(var j=0;j<oContent_body_right_title_div.length;j++){
            oContent_body_right_title_div[j].style = ''
            oTable_content[j].style.display = 'none'
            oAddModal[j].style.display = 'none'
        }
        this.style.color = 'rgb(37, 97, 239)';
        this.style.fontWeight = 'bold';
        this.style.borderBottom='5px solid #134ade';
        oTable_content[isNow].style.display = 'block'
        oAddModal[isNow].style.display = 'block'
    }
}
